import Vue from "vue";
//引入vue核心库及vueRouter
import VueRouter from 'vue-router';
//引入routes(数组)
import routes from './routes';
//声明使用vueRouter
Vue.use(VueRouter);
//向外暴露一个VueRouter实例化对象
export default new VueRouter({
    mode:'history',
    routes
})
